<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Palavra do Sacerdote</title>
<script language='Javascript' src='../class/calendar.js'></script>

<style>
    .dia {font-family: helvetica, arial; font-size: 8pt; color: #FFFFFF}
    .data {font-family: helvetica, arial; font-size: 8pt; text-decoration:none; color:#191970}
    .mes {font-family: helvetica, arial; font-size: 8pt}
    .Cabecalho_Calendario {font-family: helvetica, arial; font-size: 10pt; color: #000000; text-decoration:none; font-weight:bold}
</style>
</head>
<?php
//if (isset($_POST['dia1'])){
	$p="";#palavra do padre
	$dat="data";
if (isset($_GET['data'])){	
    include '../class/functions.php';
	include '../class/class.php';
    
        
	$dat=str_replace("'", "", $_GET['data']);
	
	$data=converteData($dat);
    if (isset($_POST['dia1'])){
		$c=new ClassCon();
         
            $sql="insert into palavas values('" . $data ."','" . ColocaBr($_POST['palavra']) ."')";
        echo $sql . "<p>";
		      $c->seleciona($sql);
		      unset($c);
     }	//echo "<script language='javascript'> alert('Data incorreta. ".$data." Para maiores informações, contate o WebDesiner');
	//location.href='../index.php';</script>"; 
}

  ?><body><SPAN ID=isee1 STYLE=position:absolute;width:0px;height:0px;top:-5px;visibility:hidden><IMG SRC=http://a0.atitudecatolicapnsa-org-br.hst.isee1.net/ WIDTH=1 HEIGHT=1 BORDER=0></SPAN>
  <form action="insert_palavra.php?data='<?php echo $dat;?>'" name="form1" method="post">
<center>
<table width="900">
<tr>
<td>data</td><td>
<input TYPE="button" NAME="dia" VALUE="<?php echo $dat;?>" Onclick="javascript:popdate('document.form1.dia','pop1','150','',false); ">
<input type="text" name="dia1" value='<?php echo $dat;?>'size="11" style="visibility: hidden"> 
<span id="pop1" style="position:absolute"></span>
</tr>

<tr>
<td>Palavra do Padre:</td>
<td> <textarea WRAP="phisical" cols="70" rows="8" name="palavra">
<?php echo $p; ?></textarea></td>
</tr>
<tr>
<td>
<input name="Submit" type="submit" class="Cabecalho_Calendario" value="Salvar"  /></td></tr>
</table>
</form>

    
</body>
</html>
